export default defineNuxtRouteMiddleware((to, from) => {
	console.log("中间件>>>>>>>>>>");
	let passURL = ['/', '/login', '/logup'];
	if (!passURL.includes(to.path)) {
		if (import.meta.client) {
			console.log("怎么来的");
			let token = useCookie('session');
			console.log(token, "token");
			if (!token) return navigateTo({
				path: "/login"
			});
		}
	}
	return true;
})